<?php
#CLASS NOTICIAS


#TIPO DO HTML
$tipo	= "outros";
$htmlr	= "";
$sql	= mysql_query("SELECT * FROM boletim WHERE tipo = '$tipo' "); 
while($row	= mysql_fetch_array($sql)){
$dados		= $_class->pega($row['idnoticia']);
$foto		= $_class->pegaimagemfoto($row['idnoticia']);



$htmlr .= '<table width="100%" border="0" cellspacing="3" cellpadding="3">';
$htmlr .= '<tr>';
$htmlr .= '<td width="82%" valign="top">';
$htmlr .= '<font face="Verdana, Arial, Helvetica, sans-serif" size="4">'.$dados['titulo'].'</font>';
$htmlr .= '<br>';

$htmlr .= '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">';
$htmlr .= ' '.$dados['descricao_p'].' ';
$htmlr .= '</font>';
$htmlr .= '</td>';
$htmlr .= '</tr>';
$htmlr .= '</table>';


}


$arquivo = "template/resumo.html";
$manipular = fopen("$arquivo", "w");
fwrite($manipular, $htmlr);





 ?>